﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TMT_CMS.BL.Excel.AttributeUtility;

namespace TMT_CMS.BL.Excel.Entity
{

    //create table ContractType
    //(
    //    ContractTypeNo       SHORT           not null,
    //    Abbr                 STRING,
    //    ChineseName          STRING,
    //    EnglishName          STRING,
    //    ChineseComment       STRING,
    //    EnglishComment       STRING,
    //constraint PK_CONTRACTTYPE primary key (ContractTypeNo)
    //);

    public class BusinessType
    {
        private short _ID = -1;
        private string _Abbr = string.Empty;
        private string _ChineseName = string.Empty;
        private string _EnglishName = string.Empty;
        private string _ChineseComment = string.Empty;
        private string _EnglishComment = string.Empty;

        [DataAttribute("ID", AttributeUtility.DataType.ShortInt, "业务类型编号")]
        public short ID
        {
            get { return _ID; }
            set { _ID = value; }
        }

        [DataAttribute("Abbr", AttributeUtility.DataType.String, "编码")]
        public string Abbr
        {
            get { return _Abbr; }
            set { _Abbr = value; }
        }

        [DataAttribute("ChineseName", AttributeUtility.DataType.String, "中文名字")]
        public string ChineseName
        {
            get { return _ChineseName; }
            set { _ChineseName = value; }
        }

        [DataAttribute("EnglishName", AttributeUtility.DataType.String, "英文名字")]
        public string EnglishName
        {
            get { return _EnglishName; }
            set { _EnglishName = value; }
        }

        [DataAttribute("ChineseMemo", AttributeUtility.DataType.String, "中文备注")]
        public string ChineseComment
        {
            get { return _ChineseComment; }
            set { _ChineseComment = value; }
        }

        [DataAttribute("EnglishMemo", AttributeUtility.DataType.String, "英文备注")]
        public string EnglishComment
        {
            get { return _EnglishComment; }
            set { _EnglishComment = value; }
        }
    }
}
